-
Notifications
You must be signed in to change notification settings - Fork 725
Fix flaky test #1142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix flaky test #1142
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
💚 CLA has been signed |
|
Here it is @delvedor ;) |
|
I've added some more This is also mentioned in the added comments. I think it's now good to merge. |
The problem was caused by not waiting for the asynchronous kill() to finish, before making a request to get connectionPool.size
delvedor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello! I'm sorry but there are too many changes in this pr not related to the issues, making it very hard to review.
I've opened #1158, which should fix the issues once for all.
Thank you for contributing!
|
No problem. Cool |
Fixes flaky 'Sniff interval' in
sniff.test.js.The problem was caused by not waiting for the asynchronous
kill()to finish the task,before making a request about the current
connectionPool.size.The error was:
The solution was to update
kill()by adding acallbackand calling it after thestop()instoppable.jshas finished. This was then used insniff.test.jsandresurrect.test.js.Logging in
shutdown()is also improved.Unused
spawn()is removed.Closes #1108.